package com.example.nio.three;

import java.nio.channels.SocketChannel;
import java.util.concurrent.ArrayBlockingQueue;

/**
 * @Description
 * @Author 26233
 * @Create 2021-10-28 17:11:29
 */

public class AcceptDispatcher {

    private ArrayBlockingQueue<SocketChannel> socketChannelArrayBlockingQueue = new ArrayBlockingQueue<>(10);

    public void addSocketChannel(SocketChannel socketChannel){
        socketChannelArrayBlockingQueue.offer(socketChannel);
    }

    public ArrayBlockingQueue<SocketChannel> getSocketChannelArrayBlockingQueue() {
        return socketChannelArrayBlockingQueue;
    }
}
